home *** CD-ROM | disk | FTP | other *** search
/ Champak 99 / (Vol 99) Jan 19 2010.iso / Games / bubble_burst.swf / scripts / frame_121 / DoAction.as
Text File  |  2010-01-19  |  5KB  |  147 lines

  1. function gotoGameover()
  2. {
  3.    gotoAndPlay(122);
  4. }
  5. function resetSpam()
  6. {
  7.    if(_root.e > 1)
  8.    {
  9.       if(_root.f > 0)
  10.       {
  11.          g = _root.h;
  12.          while(g > 0)
  13.          {
  14.             set(┬º┬ºconstant(4),_root[┬º┬ºconstant(5) + _root[┬º┬ºconstant(6)][_root.e] + ┬º┬ºconstant(7) + g]);
  15.             if(eval(┬º┬ºconstant(4))[┬º┬ºconstant(8)] > 1000 || eval(┬º┬ºconstant(4))[┬º┬ºconstant(9)] > 1000 || eval(┬º┬ºconstant(4))[┬º┬ºconstant(10)] > 1)
  16.             {
  17.                ┬º┬ºconstant(11)(eval(┬º┬ºconstant(4)));
  18.             }
  19.             g--;
  20.          }
  21.       }
  22.       _root.f = 0;
  23.    }
  24.    else if(_root.f > 0)
  25.    {
  26.       g = _root.h;
  27.       while(g > 0)
  28.       {
  29.          set(┬º┬ºconstant(4),_root[┬º┬ºconstant(12) + g]);
  30.          if(eval(┬º┬ºconstant(4))[┬º┬ºconstant(8)] > 1000 || eval(┬º┬ºconstant(4))[┬º┬ºconstant(9)] > 1000 || eval(┬º┬ºconstant(4))[┬º┬ºconstant(10)] > 1)
  31.          {
  32.             ┬º┬ºconstant(11)(eval(┬º┬ºconstant(4)));
  33.          }
  34.          g--;
  35.       }
  36.       _root.f = 0;
  37.    }
  38. }
  39. function setUpSpam(theClip)
  40. {
  41.    theClip[┬º┬ºconstant(8)] = _root[┬º┬ºconstant(13)] + random(_root[┬º┬ºconstant(14)] - _root[┬º┬ºconstant(13)]);
  42.    theClip[┬º┬ºconstant(9)] = _root[┬º┬ºconstant(15)] + random(300);
  43.    theClip[┬º┬ºconstant(16)] = _root[┬º┬ºconstant(17)] + _root[┬º┬ºconstant(18)];
  44.    theClip[┬º┬ºconstant(19)] = true;
  45.    theClip[┬º┬ºconstant(20)](1);
  46. }
  47. function updateSpeed(theClip)
  48. {
  49.    theClip[┬º┬ºconstant(21)] = 5 + random(5);
  50.    theClip[┬º┬ºconstant(22)] = 5 + random(5);
  51.    if(theClip[┬º┬ºconstant(8)] < _root[┬º┬ºconstant(23)] & random(2) == 1)
  52.    {
  53.       theClip[┬º┬ºconstant(24)] = 1;
  54.    }
  55.    else if(theClip[┬º┬ºconstant(8)] > _root[┬º┬ºconstant(23)] & random(2) == 1)
  56.    {
  57.       theClip[┬º┬ºconstant(24)] = -1;
  58.    }
  59.    else
  60.    {
  61.       theClip[┬º┬ºconstant(24)] = random(3) - 1;
  62.    }
  63.    if(theClip[┬º┬ºconstant(24)] == 0 & random(2) == 1)
  64.    {
  65.       theClip[┬º┬ºconstant(25)] = 1;
  66.    }
  67.    else if(theClip[┬º┬ºconstant(24)] == 0)
  68.    {
  69.       theClip[┬º┬ºconstant(25)] = -1;
  70.    }
  71.    else if(theClip[┬º┬ºconstant(9)] < _root[┬º┬ºconstant(26)] & random(2) == 1)
  72.    {
  73.       theClip[┬º┬ºconstant(25)] = 1;
  74.    }
  75.    else if(theClip[┬º┬ºconstant(9)] > _root[┬º┬ºconstant(26)] & random(2) == 1)
  76.    {
  77.       theClip[┬º┬ºconstant(25)] = -1;
  78.    }
  79.    else
  80.    {
  81.       theClip[┬º┬ºconstant(25)] = random(3) - 1;
  82.    }
  83. }
  84. function updateSpam(theClip)
  85. {
  86.    set(┬º┬ºconstant(27),theClip[┬º┬ºconstant(8)] + theClip[┬º┬ºconstant(21)] * theClip[┬º┬ºconstant(24)]);
  87.    set(┬º┬ºconstant(28),theClip[┬º┬ºconstant(9)] + theClip[┬º┬ºconstant(22)] * theClip[┬º┬ºconstant(25)]);
  88.    if(eval(┬º┬ºconstant(27)) > _root[┬º┬ºconstant(14)] - _root[┬º┬ºconstant(13)])
  89.    {
  90.       set(┬º┬ºconstant(27),_root[┬º┬ºconstant(14)] - _root[┬º┬ºconstant(13)]);
  91.       theClip[┬º┬ºconstant(24)] *= -1;
  92.    }
  93.    else if(eval(┬º┬ºconstant(27)) < _root[┬º┬ºconstant(13)])
  94.    {
  95.       set(┬º┬ºconstant(27),_root[┬º┬ºconstant(13)]);
  96.       theClip[┬º┬ºconstant(24)] *= -1;
  97.    }
  98.    if(eval(┬º┬ºconstant(28)) > 330)
  99.    {
  100.       set(┬º┬ºconstant(28),330);
  101.       theClip[┬º┬ºconstant(25)] *= -1;
  102.    }
  103.    else if(eval(┬º┬ºconstant(28)) < _root[┬º┬ºconstant(15)])
  104.    {
  105.       set(┬º┬ºconstant(28),_root[┬º┬ºconstant(15)]);
  106.       theClip[┬º┬ºconstant(25)] *= -1;
  107.    }
  108.    theClip[┬º┬ºconstant(8)] = eval(┬º┬ºconstant(27));
  109.    theClip[┬º┬ºconstant(9)] = eval(┬º┬ºconstant(28));
  110. }
  111. §§push(true);
  112. §§push(false);
  113. §§push(false);
  114. §§push(true);
  115. while(true)
  116. {
  117.    if(┬º┬ºpop())
  118.    {
  119.    }
  120.    if(┬º┬ºpop())
  121.    {
  122.    }
  123.    if(┬º┬ºpop())
  124.    {
  125.       break;
  126.    }
  127.    ┬º┬ºpush(true);
  128.    ┬º┬ºpush(false);
  129. }
  130. eval(┬º┬ºconstant(29))[┬º┬ºconstant(30)] = 0.2;
  131. eval(┬º┬ºconstant(29))[┬º┬ºconstant(17)] = getTimer();
  132. eval(┬º┬ºconstant(29))[┬º┬ºconstant(18)] = 150;
  133. eval(┬º┬ºconstant(29))[┬º┬ºconstant(13)] = 12;
  134. eval(┬º┬ºconstant(29))[┬º┬ºconstant(15)] = 35;
  135. eval(┬º┬ºconstant(29))[┬º┬ºconstant(14)] = 480;
  136. eval(┬º┬ºconstant(29))[┬º┬ºconstant(23)] = 200;
  137. eval(┬º┬ºconstant(29))[┬º┬ºconstant(26)] = 200;
  138. eval(┬º┬ºconstant(29)).e = 1;
  139. eval(┬º┬ºconstant(29)).f = 0;
  140. eval(┬º┬ºconstant(29)).h = 6;
  141. eval(┬º┬ºconstant(29))[┬º┬ºconstant(31)] = 5;
  142. eval(┬º┬ºconstant(29))[┬º┬ºconstant(32)] = false;
  143. eval(┬º┬ºconstant(29))[┬º┬ºconstant(33)] = false;
  144. eval(┬º┬ºconstant(29))[┬º┬ºconstant(34)] = 15;
  145. eval(┬º┬ºconstant(29))[┬º┬ºconstant(6)] = new ┬º\┬º\┬ºconstant(40)┬º(0,┬º┬ºconstant(39),┬º┬ºconstant(38),┬º┬ºconstant(37),┬º┬ºconstant(36),┬º┬ºconstant(35));
  146. stop();
  147.